package com.zzyl.nursing.service;

import java.util.List;

import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.nursing.domain.NursingTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.NursingTaskDto;
import com.zzyl.nursing.dto.TaskDto;
import com.zzyl.nursing.vo.NursingTaskVo;

/**
 * 护理任务Service接口
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
public interface INursingTaskService extends IService<NursingTask>
{
    /**
     * 查询护理任务
     * 
     * @param id 护理任务主键
     * @return 护理任务
     */
    public NursingTaskVo queryNursingTaskById(Long id);

    /**
     * 查询护理任务列表
     * 
     * @param dto 护理任务
     * @return 护理任务集合
     */
    public List<NursingTaskVo> selectNursingTaskList(NursingTaskDto dto);


    /**
     * 取消护理任务
     * 
     * @param taskDto 护理任务
     * @return 结果
     */
    public int cancelNursingTask(TaskDto taskDto);


    /**
     * 执行护理任务
     */
    int startNursingTask(TaskDto taskDto);

    /**
     * 护理任务改期
     */
    int updateTimeNursingTask(TaskDto taskDto);

    void updateNursingTaskStatus();

    void createNursingTaskJob();
}
